package cn.iocoder.yudao.module.member.controller.admin.praxisProjectResult.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
* 项目结果公示 Base VO，提供给添加、修改、详细的子 VO 使用
* 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
*/
@Data
@ApiModel("管理后台 - 项目结果公示 PraxisProjectResultBaseVO")
public class PraxisProjectResultBaseVO {

    @ApiModelProperty(value = "项目ID")
    private Long projectId;

    @ApiModelProperty(value = "标题", required = true)
    @NotBlank(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "发布时间")
    @JsonFormat(shape= JsonFormat.Shape.STRING, timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date releaseTime;

    @ApiModelProperty(value = "发布单位")
    private String releaseUnit;

    @ApiModelProperty(value = "内容")
    private String resultConnect;

    @ApiModelProperty(value = "状态;0:未发布;1:待审核;2:发布" )
    private Integer status;

    /**
     * 是否审核;0:否;1:是
     */
    @ApiModelProperty(value = "是否审核;0:否;1:是" )
    private Integer examineFlag;

    @ApiModelProperty(value = "审核备注")
    private String examineNotes;

    @ApiModelProperty(value = "角色:企业,平台运营")
    private String creatorRole;
    /**
     * 是否通过;0:否;1:是;
     */
    @ApiModelProperty(value = "是否通过;0:否;1:是;" )
    private Integer examineStatus;

}
